import type { LoginData, LoginParams, Profile } from "@/types/user"
import { request } from "@/utils/reuqest"



// 登录请求
export const loginApI = (data:LoginParams) =>{
  return request<LoginData>('/park/login','POST',data)
}

/**
 * 获取用户信息
 * @returns 
 */
export const getProfileAPI = () => {
  return request<Profile>('/park/user/profile')
}